local skel = fk.CreateSkill {
  name = "lb_zero__mengyao_tanatuosi",
  tags = { Skill.Compulsory },
}

Fk:loadTranslationTable {
  ["lb_zero__mengyao_tanatuosi"] = "塔纳托斯",
  [":lb_zero__mengyao_tanatuosi"] = "<b>锁定技</b>，你使用【杀】的次数上限+1，且每回合你的首张【杀】不可被抵消。",

  ["$lb_zero__mengyao_tanatuosi1"] = "",
  ["$lb_zero__mengyao_tanatuosi2"] = "",
}

skel:addEffect(fk.CardUsing, {
  can_trigger = function(self, event, target, player, data)
    if player:hasSkill(skel.name) and target == player and data.card.trueName == "slash" then
      local use_events = player.room.logic:getEventsOfScope(GameEvent.UseCard, 1, function(e)
        local use = e.data
        return use.from == player and data.card.trueName == "slash"
      end, Player.HistoryTurn)
      return #use_events == 1 and use_events[1].data == data
    end
  end,
  on_use = function (self, event, target, player, data)
    data.unoffsetableList = player.room.players
  end
})

skel:addEffect("targetmod", {
  residue_func = function (self, player, skill, scope, card, to)
    if player:hasSkill(skel.name) and card and card.trueName == "slash" then
      return 1
    end
  end
})

return skel
